package com.xiyu.service.vo.health.medicine.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import jakarta.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 用药计划明细 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class HealthMedicinePlanDetailBase {

    @Schema(description = "用药计划ID")
    private Long planId;

    @Schema(description = "天频率")
    @Range(max = 127, message = "天频率最大不能超过127")
    private Integer dayRate;

    @Schema(description = "次频率")
    @Range(max = 127, message = "次频率最大不能超过127")
    private Integer timeRate;

    @Schema(description = "数量")
    @DecimalMax(value = "10000000000", message = "数量最大不能超过10000000000")
    private BigDecimal number;

    @Schema(description = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;

    @Schema(description = "药品ID")
    private Long medicineId;

    @Schema(description = "上次用药时间")
    @Size(max = 50, message = "上次用药时间长度不能超过50")
    private String lastUseTime;

}
